package cn.fu.core.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.fu.core.bean.TestTb;
import cn.fu.core.dao.TestTbDao;


/**
 *
 */
@Service
@Transactional
public class TestTbServiceImpl implements TestTbService{

	@Autowired
	private TestTbDao testTbDao;
	
	
	public void insertTestTb(TestTb testb) {
		// TODO Auto-generated method stub
		System.err.println("tao前");
		testTbDao.insertTestTb(testb);
		System.err.println("tao后");
		//throw new RuntimeException();
	}


	public List<TestTb> selectTestTbList() {
		// TODO Auto-generated method stub
		System.err.println("测试AOP:执行此方法");
		return testTbDao.selectTestTbList();
	}


	@Override
	public List<TestTb> selectTestTbListByTest() {
		// TODO Auto-generated method stub
		return testTbDao.selectTestTbListByTest();
	}
	public  List<TestTb>  selectTestTbListByLike(String name){
		return testTbDao.selectTestTbListByLike(name);
	}
	
}
